package com.nodusk.timeline.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nodusk.timeline.entity.Blog;
import com.nodusk.timeline.mapper.BlogMapper;
import com.nodusk.timeline.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 今何许
 * @since 2021-08-14
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements BlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public boolean insertBlog(Blog blog) {
        return blogMapper.insert(blog) == 1;
    }
}
